package main

import (
	"srv/cmc/cap/coin"
	"srv/cmc/cap"
	"srv/cmc/cap/exchange"
)

func NewCmcFactory(action string) cap.InterfaceCmc {

	switch action {
	// case "all-exchanges":
	// 	return exchange.NewListAllExchange()
	case "all-coins":
		return coin.NewListAllCoins()
	//case "exchange-pairs":
	//	return exchange.NewExchangePairData()

	case "init-exchange":
		return exchange.NewExchangeMetaData()
	case "init-coin":
		return coin.NewCoinMetaData()
	}

	return nil
}